projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee434c
)
* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 2 Nov 2018 21:47:11 +0000
(17:47 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 2 Nov 2018 21:47:11 +0000
(17:47 -0400)
lisp/emacs-lisp/syntax.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/syntax.el
b/lisp/emacs-lisp/syntax.el
index ad1a9665ff06d5830902ccb0fce091667005b181..a4b7015f7321d0360b97129f05a4ad90d9b0151e 100644
(file)
--- a/
lisp/emacs-lisp/syntax.el
+++ b/
lisp/emacs-lisp/syntax.el
@@
-176,7
+176,7
@@
Note: back-references in REGEXPs do not work."
(re
(mapconcat
(lambda (rule)
- (let* ((orig-re (eval (car rule)))
+ (let* ((orig-re (eval (car rule)
t
))
(re orig-re))
(when (and (assq 0 rule) (cdr rules))
;; If there's more than 1 rule, and the rule want to apply
@@
-190,7
+190,7
@@
Note: back-references in REGEXPs do not work."
(cond
((assq 0 rule) (if (zerop offset) t
`(match-beginning ,offset)))
- ((
null (cddr rule
))
+ ((
and (cdr rule) (null (cddr rule)
))
`(match-beginning ,(+ offset (car (cadr rule)))))
(t
`(or ,@(mapcar